<!--  -->

<style lang='scss' type='stylesheet/scss' scoped>
.picture-warpper {
  padding: 40px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 3;
  .image {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
  .el-icon-close {
    font-size: 40px;
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 20px;
    color: white;
    cursor: pointer;
  }
}
</style>

<template>
  <div class="picture-warpper">
    <i class="el-icon-close"
       @click="$emit('update:file',null)"></i>
    <div class="image"
         :style="`background-image:url(${$host+file.path})`"></div>
    <div class="info"></div>
  </div>
</template>

<script type='text/ecmascript-6'>
export default {
  props: ["file"],
  data() {
    return {};
  }
};
</script>
